<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SVG测试</title>
</head>
<body>
<svg height="500px" width="500px">
    <rect x="0" y="0" height="100" width="100" style="fill: mediumvioletred;stroke: violet" onmouseover="console.log(123)"></rect>
    <circle cx="50" cy="200" r="7" style="fill:dodgerblue"></circle>
    <line x1="50" x2="50" y1="200" y2="250" stroke="dodgerblue" stroke-width="2"></line>
</svg>
</body>
</html>